<?php
namespace app\admin\validate;
use think\Validate;

class Board extends Validate
{
    
    protected $rule = [
        'method'      =>  'require|in:user_count,brand_count,product_count,video_count,video_pre_count,username,brand,product',
    ];

    protected $message = [
        'method.require'      => '方法参数不能为空!',
        'method.in'           => '方法参数错误!',
    ];

    protected $scene = [
        'info'         =>  ['method'],
        'options'      =>  ['method'], 
    ];

}